/**
 * 
 */
package cn.simonfish.acus.examples.controllers;

import java.io.InputStream;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.apache.struts2.json.annotations.JSON;
import org.springframework.stereotype.Controller;

import cn.simonfish.acus.common.data.DataSet;
import cn.simonfish.acus.common.model.JSONMessage;

import com.sinoservices.xframework.core.support.controllers.ActionSupport;
import com.sinoservices.xframework.core.support.controllers.FilesUploadActionSupport;

/**
 * @author Simon Yu
 *
 */
@Controller
public class FileUploadAction extends FilesUploadActionSupport {
	
	private String message;

	@Override
	protected void handleUploadFile(InputStream is, long size, String contentType, String fileName){
		message = "upload finish";
		System.out.println("fileName="+fileName);
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	
	

}
